package com.ycz.pattern.structure.decoratorpattern;

/**
 * @Description
 * @ClassName ShapeDecorator
 * @Author yanchengzhi
 * @date 2023.11.24 00:34
 */
public abstract class ShapeDecorator implements Shape {

    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw() {
        decoratedShape.draw();
    }
}
